package com.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author dzh
 * @since 2024/10/22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document("books")
@org.springframework.data.elasticsearch.annotations.Document(indexName = "books")
public class Book {
    @Id
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String line;
    private Long pid;
    private String title;
    private Integer age;
    private LocalDate publishDay;
    private Date createTime;
}
